<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%!Throwable exception;
String opcion = null;
String origenError = null;%>
<% exception = (Throwable) request.getAttribute("javax.servlet.error.exception") != null ? (Throwable) request.getAttribute("javax.servlet.error.exception") : null; 
opcion = (String) request.getAttribute("opcion") != null ? (String) request.getAttribute("opcion") : "";
origenError = (String) request.getAttribute("javax.servlet.error.request_uri") != null ? (String) request.getAttribute("javax.servlet.error.request_uri") : "";
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Error</title>
</head>
<body>
	<font class="texto">Se ha producido un error interno</font>
	<div class="ocultar_error">
	Opcion: <%=opcion %>
	<br>
	Origen: <%=origenError%>
	<br>
	<%if (exception != null){ %>
	Causa: <%= exception.toString()%>
	<br>
	Tipo de Error: <%=exception.getClass().getName()%>
	<br>
	Mensaje: <% exception.printStackTrace(new java.io.PrintWriter(out));%>
	<br>
	<%}%>
	</div>
</body>
</html>